﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Infrastructure.WpfClient.Views.Master;
using System.Windows.Markup;
using System.Windows.Documents;
using Microsoft.Practices.Unity;

namespace Skynet.C2SModule.Presenters.BookReader
{
    public class BookReaderPresenter : MasterPresenter<Views.BookReader.IBookReaderView>
    {
        public BookReaderPresenter(IUnityContainer container): base(container)
        {
        }
        public string TitleNote { get; set; }

        public override void OnViewReady()
        {
            this.TitleNote = XamlWriter.Save(new FlowDocument() {  IsOptimalParagraphEnabled=true,  IsHyphenationEnabled=true});
            this.InvokePropertyChanged("TitleNote");
            
        }
    }
}
